package com.hao_family.atcrowdfunding.service;

import java.util.List;

import com.hao_family.atcrowdfunding.beans.TAdmin;
import com.hao_family.atcrowdfunding.beans.TMenu;

public interface AdminService {

	TAdmin getAdminByUsernameAndPassword(String username, String password);

	List<TMenu> listMenus();

	List<TAdmin> getAdminList(String condition);

	TAdmin getAdminById(Integer id);

	boolean updateAdmin(TAdmin admin);

	String saveAdmin(TAdmin admin);
	/**
	 * 验证帐号是否被占用
	 * @param loginacct
	 * @return
	 */
	boolean checkLoginacct(String loginacct);
	
	/**
	 * 验证邮箱是否被占用
	 * @param email
	 * @return
	 */
	boolean checkEmail(String email);
	
	/**
	 * 删除功能
	 * @param id
	 * @return
	 */
	boolean deleteAdminById(Integer id);

}
